package com.corpdata.mp.login.controller;

import com.corpdata.mp.login.service.MpLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 小程序登录处理
 * @auther: Zealon
 * @Date: 2018-08-06 15:51
 */
@RestController
@RequestMapping("mp")
public class MpLoginController {

    @Autowired
    private MpLoginService loginService;

    @PostMapping("/login")
    public Map<String,Object> doLogin(String code){
        return loginService.doLogin(code);
    }
}
